package com.thb.pay.api.sys.vo.req;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 * @Description 系统-用户-角色
 * @Author lucky
 * @data 2019/7/30 23:52
 */
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Data
public class SysUserRoleReq implements Serializable {

    @NotNull(message = "userId.not.null")
    Long userId;

    @NotEmpty(message = "roleIds.not.empty")
    List<Long> roleIds;
}
